<tr>
    <td class="date ui-widget-content"><?php echo $value['player'] ?></td>
    <td class="text ui-widget-content"><?php echo $value['state'] ?></td>
    <td class="attendanceTD ui-widget-content">
    <?php foreach ($value['block'] as $block): ?>
        <?php if ($block == 'waitlist'): ?>
        <div class="attendanceBlock ui-state-hover"><span class="ui-icon ui-icon-flag"></span></div>
        <?php elseif ($block == 'raid'): ?>
        <div class="attendanceBlock ui-state-active"><span class="ui-icon ui-icon-check"></span></div>
        <?php else: ?>
        <div class="attendanceBlock ui-widget-content"><span class="ui-icon ui-icon-minus"></span></div>
        <?php endif; ?>
    <?php endforeach; ?>
    </td>
</tr>
